package 类和对象课堂练习.封装;

public class Zuoye03292 {
    protected String name;
    private String clor;
    private String chepai;

    public Zuoye03292(String name, String clor, String chepai) {
        this.name = name;
        this.clor = clor;
        this.chepai = chepai;
    }
    public void print(){
        System.out.println(name+"这辆车的颜色是"+clor);
        System.out.println("车牌是"+chepai);
    }
    public void start(){
        System.out.println("车辆启动了");
    }
    public void accelerate(){
        System.out.println("车辆加速了");
    }
    public void shache(){
        System.out.println("车辆刹车了");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getClor() {
        return clor;
    }

    public void setClor(String clor) {
        this.clor = clor;
    }

    public String getChepai() {
        return chepai;
    }

    public void setChepai(String chepai) {
        this.chepai = chepai;
    }
}
